

public class Student {
    String name;
    String id;
    float score;

    public Student(String name, String id) {
        this.name = name;
        this.id = id;
    }


    public void exam(float x){
        score=x;
    }
    public float getScore() {
        return score;
    }
}
